package com.group.project.hrms.service.impl;

import com.group.project.hrms.entity.CompanyAttribute;
import com.group.project.hrms.mapper.CompanyAttributeMapper;
import com.group.project.hrms.service.ICompanyAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyAttributeService implements ICompanyAttributeService {

    @Autowired
    private CompanyAttributeMapper companyAttributeMapper;

    @Override
    public int insertCompanyAttribute(CompanyAttribute companyAttribute) {
        return companyAttributeMapper.insert(companyAttribute);
    }

    @Override
    public int deleteCompanyAttribute(CompanyAttribute companyAttribute) {
        return companyAttributeMapper.deleteByPrimaryKey(companyAttribute);
    }

    @Override
    public int updateCompanyAttribute(CompanyAttribute companyAttribute) {
        return companyAttributeMapper.updateByPrimaryKey(companyAttribute);
    }

    @Override
    public CompanyAttribute selectOneCompanyAttribute(CompanyAttribute companyAttribute) {
        return null;
    }

    @Override
    public List<CompanyAttribute> selectAllCompanyAttribute() {
        return companyAttributeMapper.selectAll();
    }
}
